import axios from '~/axios'

// 添加补贴申请文件
export function addSubsidyApplicationFileApi(data) {
    return axios.post('/basic/lindi/subsidyApplicationFile/addSubsidyApplicationFile', data)
}

// 删除补贴申请文件
export function deleteSubsidyApplicationFileBySubsidyApplicationFileIdApi(subsidyApplicationFileId) {
    return axios({
        method: 'DELETE',
        url: '/basic/lindi/subsidyApplicationFile/deleteSubsidyApplicationFileBySubsidyApplicationFileId',
        params: {
            subsidyApplicationFileId: subsidyApplicationFileId
        }
    })
}

// 修改补贴申请文件
export function updateSubsidyApplicationFileBySubsidyApplicationFileIdApi(data) {
    return axios.put('/basic/lindi/subsidyApplicationFile/updateSubsidyApplicationFileBySubsidyApplicationFileId', data)
}

// 分页查询补贴申请文件列表
export function getPageSubsidyApplicationFileListApi(params) {
    return axios({
        method: 'GET',
        url: '/basic/lindi/subsidyApplicationFile/getPageSubsidyApplicationFileList',
        params: params
    })
}

// 根据ID查询补贴申请文件详情
export function getSubsidyApplicationFileBySubsidyApplicationFileIdApi(subsidyApplicationFileId) {
    return axios.get(`/basic/lindi/subsidyApplicationFile/getSubsidyApplicationFileBySubsidyApplicationFileId/${subsidyApplicationFileId}`)
}

// 根据补贴申请ID查询补贴申请文件列表
export function getSubsidyApplicationFileListBySubsidyApplicationIdApi(subsidyApplicationId) {
    return axios.get(`/basic/lindi/subsidyApplicationFile/getSubsidyApplicationFileListBySubsidyApplicationId/${subsidyApplicationId}`)
}